package o;

import android.graphics.drawable.Drawable;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.SearchView;
import com.huawei.skinner.annotation.SkinAdapter;

public class fqo {
    @SkinAdapter("android:closeIcon")
    public static void ˏ(SearchView searchView, Drawable drawable) {
        int identifier = searchView.getContext().getResources().getIdentifier("android:id/search_close_btn", null, null);
        if (identifier != 0) {
            ((ImageView) searchView.findViewById(identifier)).setImageDrawable(drawable);
        }
    }

    @SkinAdapter("android:goIcon")
    public static void ˊ(SearchView searchView, Drawable drawable) {
        int identifier = searchView.getContext().getResources().getIdentifier("android:id/search_go_btn", null, null);
        if (identifier != 0) {
            ((ImageView) searchView.findViewById(identifier)).setImageDrawable(drawable);
        }
    }

    @SkinAdapter("android:searchIcon")
    public static void ˋ(SearchView searchView, Drawable drawable) {
        int identifier = searchView.getContext().getResources().getIdentifier("android:id/search_button", null, null);
        if (identifier != 0) {
            ((ImageView) searchView.findViewById(identifier)).setImageDrawable(drawable);
        }
        Object ˎ = fmt.ˎ(SearchView.class, searchView, "mCollapsedIcon");
        if (ˎ != null && (ˎ instanceof ImageView)) {
            ((ImageView) ˎ).setImageDrawable(drawable);
        }
    }

    @SkinAdapter("android:searchHintIcon")
    public static void ॱ(SearchView searchView, Drawable drawable) {
        fmt.ˏ(SearchView.class, searchView, "mSearchHintIcon", drawable);
        fmt.ॱ(SearchView.class, searchView, "updateQueryHint", new Class[0], new Object[0]);
    }

    @SkinAdapter("android:voiceIcon")
    public static void ˎ(SearchView searchView, Drawable drawable) {
        int identifier = searchView.getContext().getResources().getIdentifier("android:id/search_voice_btn", null, null);
        if (identifier != 0) {
            ((ImageView) searchView.findViewById(identifier)).setImageDrawable(drawable);
        }
    }

    @SkinAdapter("android:queryBackground")
    public static void ॱॱ(SearchView searchView, Drawable drawable) {
        int identifier = searchView.getContext().getResources().getIdentifier("android:id/search_plate", null, null);
        if (identifier != 0) {
            ((ViewGroup) searchView.findViewById(identifier)).setBackground(drawable);
        }
    }

    @SkinAdapter("android:submitBackground")
    public static void ʻ(SearchView searchView, Drawable drawable) {
        int identifier = searchView.getContext().getResources().getIdentifier("android:id/submit_area", null, null);
        if (identifier != 0) {
            ((ViewGroup) searchView.findViewById(identifier)).setBackground(drawable);
        }
    }
}
